package org.fisco.bcos.evidence.gateway.entity.bcos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "Evidence1_1Req", description = "上链存证数据1.1")
@Data
public class EvidenceReq {
    // 版本号，默认1.1
    private String version = "1.1";

    @ApiModelProperty(value = "用户信息，用户唯一标识", required = false)
    private String user;

    @ApiModelProperty(value = "业务平台", required = false)
    private String userPlatform;

    @ApiModelProperty(value = "唯一值,存证数据的唯一标识", required = true)
    @NotBlank(message = "存证ID不能为空")
    private String evidenceId;

    @ApiModelProperty(value = "描述信息", required = false)
    private String description;

    @ApiModelProperty(value = "存证数据类型：file|common", required = true)
    @NotBlank(message = "存证数据类型不能为空")
    private String type = "common";

    @ApiModelProperty(value = "存证数据内容", required = true)
    @NotBlank(message = "存证数据不能为空")
    private String data;
}
